/*
 * @Author: xinqiao lxq1990.0716@qq.com
 * @Date: 2023-11-28 15:48:43
 * @LastEditors: xinqiao lxq1990.0716@qq.com
 * @LastEditTime: 2023-12-27 10:18:25
 * @FilePath: \partal\src\router\index.ts
 * @Description: 路由配置
 */

import { createRouter, createWebHistory } from 'vue-router'

import sysRoutes from './modules/sysRoutes'
import getMenuRouters from './modules/menuRouters'

const menuRouters = await getMenuRouters()

const router = createRouter({
  history: createWebHistory(import.meta.env.VITE_BASE_ROUTE),
  routes: [ ...sysRoutes, ...menuRouters as any ]
})

export default router
